package day07;

import java.util.Scanner;

public class Guessing {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("开始");
        int num=(int)(Math.random()*1000);
        while (true){
            int answer=scan.nextInt();
            if (answer<num){
                System.out.println("小了");
            }else if(answer>num){
                System.out.println("大了");
            }else {
                System.out.println("对了");
                break;
            }
        }
    }
}